home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ahoy 1987 March
/
Ahoy_Magazine_87-03_1987_Double_L.d64
/
Time Converter
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
324b
|
13 lines
0 print"[147]":poke53280,0:poke53281,0:poke646,1
1 rem commodares problem #35-3:
2 rem time converter
3 rem solution by
4 rem howard g. reiser
5 rem
10 input"number of hours in decimal form";hx
20 h$=str$(int(hx))
30 s=3600*(hx-int(hx))+.5
40 m=int(s)/60:m$=" :"+str$(int(m))
50 s$=" :"+str$(int((m-int(m))*60+.5))
60 print hx;" hours = ";h$;m$;s$